<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<%@ include
	file="/WEB-INF/views/shared/css/limitless/default/animate.jsp"%>

<%
	request.setAttribute("title", "模版详情");
	request.setAttribute("modelConfigPath", "proposal");
%>

<style type="text/css">
.form-detailed .form-group {
	margin-bottom: 6px !important;
	padding-bottom: 6px !important;
}
</style>
<div class="detailed-navbar-content panel-body">
	<t:form commandName="proposal" action="/admin/proposal/save" method="post" cssClass="form-horizontal">
		<div class="hide">
			<t:hidden path="proposalId" />
		</div>
		<t:formgroup>
			<t:label path="proposalName" cssClass="col-sm-2" />
			<t:input path="proposalName" colClass="col-sm-3" />
			<t:label path="tutorId" cssClass="col-sm-2" />
			<t:select2 path="tutorId" colClass="col-sm-3" />
		</t:formgroup>
		<t:formgroup>
			<t:label path="version" cssClass="col-sm-2" />
			<t:input path="version" colClass="col-sm-3" />
		</t:formgroup>
		<t:formgroup>
			<t:label path="comments" cssClass="col-sm-2" />
			<t:textarea rows="5" cols="4" path="comments" colClass="col-sm-8" />
		</t:formgroup>
		<t:formgroup>
			<div style="width: 50%; float: left; margin-left: 8%">
				<t:label path="contents" cssClass="col-md-2" />
			</div>
			<div style="width: 80%; float: left; margin-left: 10%">
				<t:ueditor path="contents" style="height:550px;" />
			</div>
		</t:formgroup>
		<t:formgroup>
			<div style="width: 80%; float: left; margin-left: 10%">
				<p class="content-group">选择您引用过的文献</p>
				<t:listbox path="documentIds" preserveSelectionOnMove="moved"
					moveOnSelect="false"></t:listbox>
			</div>
		</t:formgroup>
	</t:form>
</div>
<div style="width: 10%; float: right; margin-right: 10%">
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</div>
<script type="text/javascript">
	function saveData() {
		alert("123");
		if (!$("form:first").valid()) {
			return;
		}
		alert("789");
		$("form:first").submit();
	}
</script>

<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/forminputs.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/scripts/editor/ueditor.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/colors.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/pages/forms/form_dual_listboxes.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/master/limitless/default/demo/contentFooter.jsp"%>